﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CimeaSoft.UI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //cargar automaticamente con la ruta
            var fullPath = Path.Combine(Application.StartupPath, @"Anexo.pdf");
            string fileName = fullPath;
            pdfView.src = fileName;

            // cargar con un openFile buscando el archivo
            //OpenFileDialog abrirpdf = new OpenFileDialog();
            //abrirpdf.Filter = "PDF File|*.pdf";
            //if (abrirpdf.ShowDialog() == DialogResult.OK)
            //{
            //    pdfView.src = abrirpdf.FileName;
            //}
        }
    }
}
